package com.example.deepseek.backend.model;

import com.fasterxml.jackson.annotation.JsonInclude;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class FileInfo {

    private String name; // 文件名
    private long size; // 文件大小（字节）
    private String type; // 文件类型
    private String url; // 文件URL
    private String content; // 文件内容（文本形式）

    // 构造函数
    public FileInfo(String name, long size, String type) {
        this.name = name;
        this.size = size;
        this.type = type;
    }

    // 默认构造函数，用于JSON序列化
    public FileInfo() {
    }
    
    // Getter and Setter methods
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public long getSize() {
        return size;
    }
    
    public void setSize(long size) {
        this.size = size;
    }
    
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    public String getUrl() {
        return url;
    }
    
    public void setUrl(String url) {
        this.url = url;
    }
    
    public String getContent() {
        return content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
}